import request from '@/utils/request'
import {isEmptyString} from '@/utils/common'

//标签树
export function listTagTree(id) {
    if(!isEmptyString(id)){
        return request({
            url: '/label/tree?id=' + id,
            method: 'get',
        })
    }else{
        return request({
            url: '/label/tree',
            method: 'get',
        })
    }
}
//获取标签详情
export function getTag(id) {
    return request({
        url: '/label/info?id=' + id,
        method: 'get',
    })
}